<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>客户治疗信息管理</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
 		html, body {overflow:auto;}
 	</style>
	<script type="text/javascript">
		$(document).ready(function() {			
		});
	</script>
</head>
<body>
	<div class="icon-buttons">
		<a data-role="button" data-icon="back" data-iconpos="notext" data-inline="true" href="${ctx}/expert/customerExam/list">返 回</a>
	</div>
	<form:form id="inputForm" modelAttribute="customerExam" action="${ctx}/expert/customerExam/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<div data-role="collapsible" data-collapsed="false">
		    <h4>个人状况</h4>
			<label>个人状况</label><br/>
			<label>姓名：</label>${customerExam.customer.name}
			<label>性别：</label>${fns:getDictLabel(customerExam.customer.gender, 'gender', '')}<br/>
			<label>年龄：</label>${fns:getAge(customerExam.customer.birthday)}
			<label>体重：</label>${customerExam.customer.weight}'Kg'<br/>
			<label>家庭状况</label><br/>
			<label>婚姻状况：</label>${fns:getDictLabel(customerExam.customer.marry, 'marry', '')}
			<label>孩子数：</label>${customerExam.customer.childs}<br/>
			<label>居住环境：</label>${fns:getDictLabel(customerExam.customer.live_condition, 'live_condition', '')}<br/>
			<label>工作状况</label><br/>
			<label>工作场所：</label>${fns:getDictLabel(customerExam.customer.workplace, 'workplace', '')}<br/>
			<label>工作性质：</label>${customerExam.customer.work_nature}
		</div>
		<div data-role="collapsible" data-collapsed="false">
			<h4>诊断照片</h4>
			<c:if test="${not empty customerExam.photo1}">
				<a href="#customerPhoto1" data-rel="popup" data-position-to="window">
					<img alt="照片1" src="${ossPath}${customerExam.photo1}" width="400" height="300">
				</a>
			</c:if>
			<c:if test="${not empty customerExam.photo2}">
				<a href="#customerPhoto2" data-rel="popup" data-position-to="window">
					<img alt="照片2" src="${ossPath}${customerExam.photo2}" width="400" height="300">
				</a>
			</c:if>
			<c:if test="${not empty customerExam.photo3}">
				<a href="#customerPhoto3" data-rel="popup" data-position-to="window">
					<img alt="照片3" src="${ossPath}${customerExam.photo3}" width="400" height="300">
				</a>
			</c:if>
		</div>
		<div data-role="collapsible" data-collapsed="false">
			<h4>参数详情</h4>
			<div class="middleCls">
				<c:if test="${empty parametersList}">
					<h4>无记录</h4>
				</c:if>
				<c:if test="${not empty parametersList}">
					<table id="contentTable" data-role="table" class="ui-responsive table-stroke">
						<thead><tr><th>参数名称</th><th>存在</th></thead>
						<tbody>
						<c:forEach items="${parametersList}" var="customerExamParameters">
							<tr>
								<td>${customerExamParameters.parameter.name}</td>
								<td>是</td>
							</tr>
						</c:forEach>
						</tbody>
					</table>
				</c:if>
			</div>
		</div>
	</form:form>
</body>
</html>
